// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import ElementUI from 'element-ui';
import './styles/element-variables.scss'

Vue.use(ElementUI);

import '@/styles/index.scss' // 全局样式
import './icons' // icon图标

import axios from 'axios'
import VueAxios from 'vue-axios'

Vue.use(VueAxios, axios)

import store from './store/index.js' // 引入vuex
import Vuex from 'vuex'

Vue.use(Vuex)

Vue.prototype.$axios = axios
// 上线全局请求配置
axios.defaults.baseURL = "/api"

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
